<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CI_Controller {

	/**
	 * Index Page for this controller.
	 *
	 * Maps to the following URL
	 * 		http://example.com/index.php/welcome
	 *	- or -  
	 * 		http://example.com/index.php/welcome/index
	 *	- or -
	 * Since this controller is set as the default controller in 
	 * config/routes.php, it's displayed at http://example.com/
	 *
	 * So any other public methods not prefixed with an underscore will
	 * map to /index.php/welcome/<method_name>
	 * @see http://codeigniter.com/user_guide/general/urls.html
	 */
	public function index()
	{
		global $LANG;
		$this->lang->load('form', $this->config->item('language'));
		//chargement traduction navBarre
		$this->data['trad']['accueil'] = $LANG->language['accueil'];
		$this->data['trad']['video'] = $LANG->language['video'];
		$this->data['trad']['gallerie'] = $LANG->language['gallerie'];
		$this->data['trad']['news'] = $LANG->language['news'];
		$this->data['trad']['projet'] = $LANG->language['projet'];
		$this->data['trad']['cv'] = $LANG->language['cv'];
		$this->data['trad']['pro'] = $LANG->language['pro'];
		$this->data['trad']['jeux'] = $LANG->language['jeux'];
		$this->data['trad']['test'] = $LANG->language['test'];

		//chargement pied de page

		$this->load->model('maccueil');
		$this->data['news']=$this->maccueil->getNews();
		// printf("<pre>%s</pre>",print_r($this->data, true));
		$this->load->view('index', $this->data);
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */